package com.vmware2.vim25.mo.samples;

import com.vmware.vim25.mo.ServiceInstance;

import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;

public class SampleUtil {

	public static ServiceInstance createServiceInstance() throws RemoteException, MalformedURLException {
	   ServiceInstance si = new ServiceInstance(new URL("https://192.168.157.2:443/sdk"), "frank@vsphere.local", "frank@123", true);
	   si.getSessionManager().setLocale("zh-CN"); // set locale for the content of all API result.
	   return si;
	}

}
